# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-frodo
pkgver=0_git20221221
pkgrel=0
_commit="345a936072ecb2a545396662045bbb266d8d9baf"
pkgdesc="commodore 64 emulator for libretro"
url="https://github.com/libretro/frodo-libretro"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/frodo-libretro/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/frodo-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf Src/zlib
	make -f Makefile.libretro
}

package() {
	install -Dm644 frodo_libretro.so "$pkgdir"/usr/lib/libretro/frodo_libretro.so
}

sha512sums="
e70e6e5b21b85eb7e26f128eba632be9bd70fc908bf226d15456665dda1faacf58058d8c45a748bb8794e84ce39f30f0d040e2b17c1e818548f8db22fefbae44  libretro-frodo-345a936072ecb2a545396662045bbb266d8d9baf.tar.gz
21de704da2a184e0c4059b25a669055c57d0024336902fd29de4e8e1a1b110c67f5babd8c5cab1d7e4141b82979ffd2ed5d682f02815ab17f5d9d715fc732d6e  patch-unbundle.patch
"
